home *** CD-ROM | disk | FTP | other *** search
- /**************************************
- cScorePane.h
- ****************************************/
-
- #define _H_cScorePane
- #include <CPane.h>
-
- /*** Class Types ***/
- typedef int tScores[2];
-
- struct cScorePane : CPane {
- /* Instance variables */
- Boolean fPlayerHilite; /* Player currently highlighted,
- not necessaryily whose turn it is */
-
- /* Initialization */
- void IScorePane(CView *anEnclosure, CBureaucrat *aSupervisor,
- short aWidth, short aHeight,
- short aHEncl, short aVEncl,
- SizingOption aHSizing, SizingOption aVSizing);
-
- /* Override Methods */
- void Draw(Rect *area);
-
- /* Additional Methods */
- void calculateScore(tScores score);
- void getPlayerRect(Boolean thePlayer, Rect *r);
- void invalScore(Boolean thePlayer);
- void setTurn(Boolean thePlayer);
- };